Ext.define('appmod.view.resources.uicomp.AuthView', {
    extend: 'Ext.panel.Panel',
    alias: 'widget.uicompauthview',
    layout: {
        type: 'border'
    },
	requires : [
		'Ext.ux.RowExpander'
	],
    initComponent: function(){
        var me = this;
        Ext.applyIf(me, {
            items: [{
                xtype: 'gridpanel',
				split: true,
                padding: '1 0 1 1',
                region: 'west',
                width: 280,
                columns: [{
                    xtype: 'gridcolumn',
                    dataIndex: 'link',
                    width: 250,
                    text: '页面链接',
                    sortable: false
                }],
                viewConfig: {}
            
            }, {
                xtype: 'gridpanel',
                padding: '1 1 1 0',
                region: 'center',
                columns: [{
                    xtype: 'gridcolumn',
                    dataIndex: 'uiid',
                    flex: 1,
                    text: 'UI组件ID',
                    sortable: false
                }, {
                    xtype: 'gridcolumn',
                    dataIndex: 'type',
                    width: 75,
                    text: '组件类型',
                    sortable: false
                }, {
                    xtype: 'gridcolumn',
                    dataIndex: 'bootup',
                    width: 75,
                    text: '权限设定',
                    sortable: false
                }],
		        plugins: [{
		            ptype: 'rowexpander',
		            rowBodyTpl : [
		                '<p><b>组件介绍:</b> {remark}</p><br>'
		            ]
		        }],				
                viewConfig: {}
            
            }]
        });
        
        me.callParent(arguments);
    }
});
